package com.bfxy.rabbit.common.serializer;

/**
 * @describte: 序列化与反序列化接口
 * @program:foodie-dev
 * @author:zhengdp
 * @create:2021-09-15 16:55:01
 **/
public interface Serializer {

    byte[] serializeRaw(Object data);

    String serialize(Object data);

    // 反序列化
    <T> T deserialize(String content);
    <T> T deserialize(byte[] content);
}
